

function test(api){
    api.headers["X-CSRFToken"] = document.cookie.split("=")[1];return {...api,data: {...api.data}};
}

function test2(payload, response){
  response.headers["X-CSRFToken"] = null;return {...payload};
}